package dialogos;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import javax.swing.BorderFactory;

import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.border.LineBorder;

import peluqueria.Peluqueria;

import datos.Cliente;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ClienteDatosDialog extends JDialog {
	private JLabel jLabel1;
	private JLabel jLabel2;
	private JLabel jLabel3;
	private JLabel jLabel4;
	private JLabel jLabel5;
	private JLabel jLabel6;
	private Cliente c;

	public ClienteDatosDialog(TurnosExtraDialog turnosExtraDialog, Cliente c) {
		super(Peluqueria.getInstance().getJFrame(), "Datos del cliente", true);
		this.c=c;
		initGUI();
		
	}

	private void initGUI() {
		try {
			FlowLayout thisLayout = new FlowLayout();
			getContentPane().setLayout(thisLayout);
			{
				jLabel1 = new JLabel();
				FlowLayout jLabel1Layout = new FlowLayout();
				jLabel1.setLayout(null);
				getContentPane().add(jLabel1);
				jLabel1.setText("Nombre");
				jLabel1.setPreferredSize(new java.awt.Dimension(86, 26));
				jLabel1.setFocusTraversalPolicyProvider(true);
				jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
				jLabel1.setForeground(new java.awt.Color(0,0,0));
				jLabel1.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
				pack();
				this.setSize(233, 137);
			}
		{
			jLabel2 = new JLabel(c.getNombre());
			getContentPane().add(jLabel2);
			FlowLayout jLabel2Layout = new FlowLayout();
			jLabel2.setPreferredSize(new java.awt.Dimension(86, 26));
			jLabel2.setLayout(null);
			jLabel2.setFocusTraversalPolicyProvider(true);
			jLabel2.setHorizontalAlignment(SwingConstants.CENTER);
			jLabel2.setForeground(new java.awt.Color(0,0,0));
			jLabel2.setFocusCycleRoot(false);
			jLabel2.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
			jLabel2.setBackground(new java.awt.Color(255,255,255));
			jLabel2.setOpaque(true);
		}
		{
			jLabel3 = new JLabel();
			getContentPane().add(jLabel3);
			jLabel3.setText("Apellido");
			jLabel3.setPreferredSize(new java.awt.Dimension(86, 26));
			jLabel3.setFocusTraversalPolicyProvider(true);
			jLabel3.setHorizontalAlignment(SwingConstants.CENTER);
			jLabel3.setForeground(new java.awt.Color(0,0,0));
			jLabel3.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
		}
		{
			jLabel4 = new JLabel(c.getApellido());
			getContentPane().add(jLabel4);
			jLabel4.setPreferredSize(new java.awt.Dimension(86, 26));
			jLabel4.setFocusTraversalPolicyProvider(true);
			jLabel4.setHorizontalAlignment(SwingConstants.CENTER);
			jLabel4.setForeground(new java.awt.Color(0,0,0));
			jLabel4.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
			jLabel4.setBackground(new java.awt.Color(255,255,255));
			jLabel4.setOpaque(true);
		}
		{
			jLabel5 = new JLabel();
			getContentPane().add(jLabel5);
			jLabel5.setText("Tel");
			jLabel5.setPreferredSize(new java.awt.Dimension(86, 26));
			jLabel5.setFocusTraversalPolicyProvider(true);
			jLabel5.setHorizontalAlignment(SwingConstants.CENTER);
			jLabel5.setForeground(new java.awt.Color(0,0,0));
			jLabel5.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
		}
		{
			jLabel6 = new JLabel(c.getCelular());
			getContentPane().add(jLabel6);
			jLabel6.setPreferredSize(new java.awt.Dimension(86, 26));
			jLabel6.setFocusTraversalPolicyProvider(true);
			jLabel6.setHorizontalAlignment(SwingConstants.CENTER);
			jLabel6.setForeground(new java.awt.Color(0,0,0));
			jLabel6.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
			jLabel6.setBackground(new java.awt.Color(255,255,255));
			jLabel6.setOpaque(true);
		}
		} catch(Exception e) {
			e.printStackTrace();
		
		}
		this.setLocationRelativeTo(null);
		this.setVisible(true);
		
		this.pack();
	}

}
